package org.csu.onlineedubackend.dto;

import lombok.Data;

import java.time.LocalDateTime;

/**
 * DTO for course comment data
 * 字段与数据库表结构完全匹配
 */
@Data
public class CourseCommentDTO {
    // 数据库表中的字段
    private Integer id;
    private Integer courseId;
    private Integer studentId; // 使用studentId而不是userId
    private String content;
    private Integer stars; // 使用stars而不是rating
    private Integer likeCount;
    private LocalDateTime createdAt;
    private Integer status;
    
    // 额外字段，用于前端展示
    private String username;
    private String userAvatar;
}